<template>
  <div @click="toggleClick">
    <svg-icon :icon-class="isActive?'menu-close':'menu-open'" class="hamburgerWhite" width="64" height="64" view-box="0 0 1024 1024" />
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped>
.hamburgerWhite {
  color: #fff;
  font-size: 0.3rem;
  cursor: pointer;
  margin: 0 !important;
}

.hamburgerWhite.is-active {
  transform: rotate(180deg);
}
</style>
